<?php
require_once '_inc.php';

$files = glob('../templates/*.tpl');

function file_size($params)
{
	extract($params);
	if( $fname ) {
		return filesize($fname);
	}
	return 0;
}
$tpl->register_function('fsize','file_size');
$tpl->assign('files',$files);
$tpl->display( );